import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

/* Layout */
import Layout from '@/layout'

/**
 * Note: sub-menu only appear when route children.length >= 1
 * Detail see: https://panjiachen.github.io/vue-element-admin-site/guide/essentials/router-and-nav.html
 *
 * hidden: true                   if set true, item will not show in the sidebar(default is false)
 * alwaysShow: true               if set true, will always show the root menu
 *                                if not set alwaysShow, when item has more than one children route,
 *                                it will becomes nested mode, otherwise not show the root menu
 * redirect: noRedirect           if set noRedirect will no redirect in the breadcrumb
 * name:'router-name'             the name is used by <keep-alive> (must set!!!)
 * meta : {
    roles: ['admin','editor']    control the page roles (you can set multiple roles)
    title: 'title'               the name show in sidebar and breadcrumb (recommend set)
    icon: 'svg-name'             the icon show in the sidebar
    breadcrumb: false            if set false, the item will hidden in breadcrumb(default is true)
    activeMenu: '/example/list'  if set path, the sidebar will highlight the path you set
  }
 */

/**
 * constantRoutes
 * a base page that does not have permission requirements
 * all roles can be accessed
 */

export const constantRoutes = [{
    path: '/login',
    component: () =>
        import ('@/views/login/index'),
    hidden: true
}, {
    path: '/404',
    component: () =>
        import ('@/views/404'),
    hidden: true
}, {
    path: '/',
    component: () =>
        import ('@/views/mainIndex'),
    hidden: true
}, ]

export const asyncRoutes = [
    /* ********* 预备阶段 ***********/



    {
        path: '/fksqtc',
        component: Layout,
        redirect: '/fksqtc/infoEntry',
        name: '前期测绘机构选取',
        meta: { title: '前期测绘机构选取', icon: 'example', roles: ["前期测绘机构选取"] },
        alwaysShow: true,
        children: [{
                path: '/fksqtc/infoEntry',
                name: 'EARLY_MAPPING_ENTERPRISE_SELECT',
                component: () =>
                    import ('@/views/project/fksqtc/infoEntry'),
                meta: { title: '前期测绘机构选取信息录入', roles: ["前期测绘机构选取信息录入"] },
            },
            {
                path: '/fksqtc/infoView',
                name: 'EARLY_MAPPING_ENTERPRISE_SELECT',
                component: () =>
                    import ('@/views/project/fksqtc/infoView'),
                meta: { title: '前期测绘机构选取信息查看', roles: ["前期测绘机构选取信息查看"] },
            },
            {
                path: '/fksqtc/attachment',
                name: '前期测绘机构选取附件资料',
                component: () =>
                    import ('@/views/project/fksqtc/attachment'),
                meta: { title: '附件资料', roles: ["前期测绘机构选取信息查看（市中心）"] },
            },

        ]
    },
    {
        path: '/siteSurveyEarlyStage',
        component: Layout,
        redirect: '/siteSurveyEarlyStage/insertEarlyStage',
        name: '现场踏勘与前期测绘',
        meta: { title: '现场踏勘与前期测绘', icon: 'example', roles: ["现场踏勘与前期测绘"] },
        children: [{
                path: 'insertEarlyStage',
                name: 'EARLY_MAPPING_RESULT_SAVE',
                component: () =>
                    import ('@/views/project/siteSurveyEarlyStage/insertEarlyStage'),
                meta: { title: '前期测绘成果录入（区县）', roles: ["前期测绘成果录入（区县）"] }
            },
            {
                path: 'qianqichjgcs',
                name: 'EARLY_MAPPING_RESULT_FIRST_AUDIT',
                redirect: '/siteSurveyEarlyStage/qianqichjgcs/list',
                component: () =>
                    import ('@/views/project/siteSurveyEarlyStage/qianqichjgcs/index'),
                meta: { title: '前期测绘成果初审（区县）', roles: ["前期测绘成果初审（区县）1"] },
                children: [{
                        path: 'list',
                        name: '前期测绘成果初审（区县）2',
                        component: () =>
                            import ('@/views/project/siteSurveyEarlyStage/qianqichjgcs/list/index'),
                        meta: { title: '前期测绘成果初审（区县）', activeMenu: "/siteSurveyEarlyStage/qianqichjgcs", breadcrumb: false },
                        hidden: true,
                    },
                    {
                        path: 'detail',
                        name: '前期测绘成果初审详情2',
                        component: () =>
                            import ('@/views/project/siteSurveyEarlyStage/qianqichjgcs/detail/index'),
                        meta: { title: '前期测绘成果初审详情', activeMenu: "/siteSurveyEarlyStage/qianqichjgcs" },
                        hidden: true,
                    }
                ]
            },
            {
                path: 'earlyStageAchievementOpinion',
                name: 'EARLY_MAPPING_RESULT_FIRST_AUDIT_FIRST_OPINION',
                component: () =>
                    import ('@/views/project/siteSurveyEarlyStage/earlyStageAchievementOpinion'),
                meta: { title: '前期测绘审成果初审意见（区县）', roles: ["前期测绘审成果初审意见（区县）1"] }
            },
            {
                path: 'earlyStageAchievementOpinion',
                name: 'EARLY_MAPPING_RESULT_FIRST_AUDIT_SECOND_OPINION',
                component: () =>
                    import ('@/views/project/siteSurveyEarlyStage/earlyStageAchievementOpinion'),
                meta: { title: '前期测绘审成果初审意见（区县）', roles: ["前期测绘审成果初审意见（区县）2"] }
            },
            // {
            //     path: 'earlyStageAchievementOpinion1',
            //     name: '前期测绘审成果初审意见（市中心)',
            //     component: () =>
            //         import ('@/views/project/siteSurveyEarlyStage/earlyStageAchievementOpinion'),
            //     meta: { title: '前期测绘审成果初审意见（市中心)', icon: 'tree', roles:["EARLY_MAPPING_RESULT_FIRST_AUDIT_SECOND_OPINION"]}
            // },
            {
                path: 'supervisionInformation',
                name: '综合监管信息1',
                redirect: '/siteSurveyEarlyStage/supervisionInformation/list',
                component: () =>
                    import ('@/views/project/siteSurveyEarlyStage/supervisionInformation/index'),
                meta: { title: '综合监管信息' },
                children: [{
                        path: 'list',
                        name: '综合监管信息2',
                        component: () =>
                            import ('@/views/project/siteSurveyEarlyStage/supervisionInformation/list/index'),
                        meta: { title: '综合监管信息', activeMenu: "/siteSurveyEarlyStage/supervisionInformation", breadcrumb: false },
                        hidden: true,
                    },
                    {
                        path: 'detail',
                        name: '综合监管信息详情3',
                        component: () =>
                            import ('@/views/project/siteSurveyEarlyStage/supervisionInformation/detail/index'),
                        meta: { title: '综合监管信息详情', activeMenu: "/siteSurveyEarlyStage/supervisionInformation" },
                        hidden: true,
                    }
                ]
            },
            {
                path: 'archiveFiles',
                component: () =>
                    import ('@/views/project/siteSurveyEarlyStage/archiveFiles/index'),
                // redirect: '/archiveFiles/earlyStageAchievementOpinion1',
                name: '归档资料5',
                meta: { title: '归档资料' },
                children: [{
                    path: 'earlyStageAchievementOpinion1',
                    name: '前期测绘审成果初审意见1',
                    component: () =>
                        import ('@/views/project/siteSurveyEarlyStage/archiveFiles/earlyStageAchievementOpinion1'),
                    meta: { title: '前期测绘审成果初审意见' }
                }, {
                    path: 'increaseAndDecrease',
                    name: '前期测绘审减（增）信息表',
                    component: () =>
                        import ('@/views/project/siteSurveyEarlyStage/archiveFiles/increaseAndDecrease'),
                    meta: { title: '前期测绘审减（增）信息表' }
                }],
            },
            {
                path: 'attachment',
                name: '现场踏勘与前期测绘附件资料',
                component: () =>
                    import ('@/views/project/siteSurveyEarlyStage/attachment'),
                meta: { title: '附件资料' }
            },
        ]
    },
    {
        path: '/earlyStageAchievementRecheck',
        component: Layout,
        redirect: '/earlyStageAchievementRecheck/index',
        name: '前期测绘成果复审',
        meta: { title: '前期测绘成果复审', icon: 'example', roles: ["前期测绘成果复审"] },
        children: [{
                path: 'index',
                name: 'EARLY_MAPPING_RESULT_SECOND_AUDIT',
                component: () =>
                    import ('@/views/project/earlyStageAchievementRecheck/index'),
                meta: { title: '前期测绘成果复审', roles: ["前期测绘成果复审（市中心）"] }
            },
            {
                path: 'indexLook',
                name: 'EARLY_MAPPING_RESULT_SECOND_AUDIT',
                component: () =>
                    import ('@/views/project/earlyStageAchievementRecheck/qianqichjgcs/list/index'),
                meta: { title: '前期测绘成果复审结果查看', roles: ["前期测绘成果复审（市中心）查看"] }
            },
            {
                hidden: true,
                path: 'qianqichjgcs',
                name: '前期测绘成果复审（辅助审查）1',
                redirect: '/earlyStageAchievementRecheck/qianqichjgcs/list',
                component: () =>
                    import ('@/views/project/earlyStageAchievementRecheck/qianqichjgcs/index'),
                meta: { title: '前期测绘成果复审（辅助审查）', activeMenu: "/earlyStageAchievementRecheck/index" },
                children: [{
                        path: 'list',
                        name: '前期测绘成果复审（辅助审查）2',
                        component: () =>
                            import ('@/views/project/earlyStageAchievementRecheck/qianqichjgcs/list/index'),
                        meta: { title: '前期测绘成果复审（辅助审查）', activeMenu: "/earlyStageAchievementRecheck/index", breadcrumb: false, },
                        hidden: true,
                    },
                    {
                        path: 'detail',
                        name: '前期测绘成果初审详情3',
                        component: () =>
                            import ('@/views/project/earlyStageAchievementRecheck/qianqichjgcs/detail/index'),
                        meta: { title: '前期测绘成果复审（辅助审查详情）', activeMenu: "/earlyStageAchievementRecheck/index" },
                        hidden: true,
                    }
                ]
            },
            {
                path: 'earlyStageChengGuoFuShenYj',
                name: 'EARLY_MAPPING_RESULT_SECOND_AUDIT_FIRST_OPINION',
                component: () =>
                    import ('@/views/project/earlyStageAchievementRecheck/earlyStageChengGuoFuShenYj'),
                meta: { title: '前期测绘成果复审意见（经办人）', roles: ["前期测绘成果复审意见（经办人）"] }
            },
            {
                path: 'earlyStageChengGuoFuShenYj1',
                name: 'EARLY_MAPPING_RESULT_SECOND_AUDIT_SECOND_OPINION',
                component: () =>
                    import ('@/views/project/earlyStageAchievementRecheck/earlyStageChengGuoFuShenYj'),
                meta: { title: '前期测绘成果复审意见（负责人）', roles: ["前期测绘成果复审意见（负责人）"] }
            },
            {
                path: 'supervisionInformation',
                name: '综合监管信息3',
                redirect: '/earlyStageAchievementRecheck/supervisionInformation/list',
                component: () =>
                    import ('@/views/project/earlyStageAchievementRecheck/supervisionInformation/index'),
                meta: { title: '综合监管信息' },
                children: [{
                        path: 'list',
                        name: '综合监管信息4',
                        component: () =>
                            import ('@/views/project/earlyStageAchievementRecheck/supervisionInformation/list/index'),
                        meta: { title: '综合监管信息', activeMenu: "/earlyStageAchievementRecheck/supervisionInformation", breadcrumb: false, },
                        hidden: true,
                    },
                    {
                        path: 'detail',
                        name: '综合监管信息详情2',
                        component: () =>
                            import ('@/views/project/earlyStageAchievementRecheck/supervisionInformation/detail/index'),
                        meta: { title: '综合监管信息详情', activeMenu: "/earlyStageAchievementRecheck/supervisionInformation" },
                        hidden: true,
                    }
                ]
            },

            {
                path: 'archiveFiles',
                component: () =>
                    import ('@/views/project/earlyStageAchievementRecheck/archiveFiles/index'),
                // redirect: '/archiveFiles/earlyStageAchievementOpinion1',
                name: '归档资料4',
                meta: { title: '归档资料' },
                alwaysShow: true,
                children: [{
                    path: 'earlyStageChengGuoFuShenYjB',
                    name: '前期测绘成果复审意见表',
                    component: () =>
                        import ('@/views/project/earlyStageAchievementRecheck/archiveFiles/earlyStageChengGuoFuShenYjB'),
                    meta: { title: '前期测绘成果复审意见表' }
                }],
            },
        ]
    },
    {
        path: '/xmgz',
        component: Layout,
        redirect: '/xmgz/regulatoryInfo',
        name: '项目告知',
        meta: { title: '项目告知', icon: 'example', roles: ["项目告知"] },
        alwaysShow: true,
        children: [{
            path: 'regulatoryInfo',
            name: '项目告知',
            component: () =>
                import ('@/views/project/xmgz/regulatoryInfo'),
            meta: { title: '告知信息', roles: ["项目告知"] }
        }, {
            path: 'regulatoryInfoData',
            name: '综合监管信息5',
            component: () =>
                import ('@/views/project/xmgz/regulatoryInfoData'),
            meta: { title: '综合监管信息', roles: ["项目告知"] }
        }]
    },

    {
        path: '/xmzzSure',
        component: Layout,
        redirect: '/xmzzSure/infoSure',
        name: '项目组装确认',
        meta: { title: '项目组装确认', icon: 'example', roles: ["项目组装确认"] },
        alwaysShow: true,
        children: [{
            path: 'infoSure',
            name: 'PROJECT_CONFIRM_PACKAGE',
            component: () =>
                import ('@/views/project//xmzzSure/infoSure'),
            meta: { title: '项目信息确认', roles: ["项目信息确认1"] }
        }, {
            path: 'infoSure',
            name: 'PROJECT_UPDATE_PACKAGE',
            component: () =>
                import ('@/views/project//xmzzSure/infoSure'),
            meta: { title: '项目信息确认', roles: ["项目信息确认2"] }
        }]
    },
    {
        path: '/ghsjyssfanzxq',
        component: Layout,
        redirect: '/ghsjyssfanzxq/unitEntry',
        name: 'CONSTRUCTING_PLAN_ENTERPRISE_SELECT',
        meta: { title: '规划设计与实施方案编制单位选取', icon: 'example', roles: ["规划设计与实施方案编制单位选取"] },
        children: [{
                path: 'unitEntry',
                name: 'CONSTRUCTING_PLAN_ENTERPRISE_SELECT',
                component: () =>
                    import ('@/views/project/ghsjyssfanzxq/unitEntry'),
                meta: { title: '单位选取信息录入(区县)' }
            },
            {
                path: 'unitView',
                name: '单位选取信息查看(市中心)',
                component: () =>
                    import ('@/views/project/ghsjyssfanzxq//unitView'),
                meta: { title: '单位选取信息查看(市中心)' }
            },
            {
                path: 'unitAttachment',
                name: '附件资料14',
                component: () =>
                    import ('@/views/project/ghsjyssfanzxq//unitAttachment'),
                meta: { title: '附件资料' }
            }
        ]
    },

    {
        path: '/ghsjAndssfaPingShen',
        component: Layout,
        redirect: '/ghsjAndssfaPingShen/insert',
        name: '规划设计与实施方案评审',
        meta: { title: '规划设计与实施方案评审', icon: 'example', roles: ["规划设计与实施方案评审"] },
        children: [{
                path: 'insert',
                name: 'CONSTRUCTING_PLAN_RESULT_SAVE',
                component: () =>
                    import ('@/views/project/ghsjAndssfaPingShen/insert'),
                meta: { title: '规划设计与实施方案成果录入（区县）', roles: ["规划设计与实施方案成果录入（区县）"] }
            }, {
                path: 'qianqichjgcs',
                name: 'CONSTRUCTING_PLAN_RESULT_FIRST_AUDIT',
                redirect: '/ghsjAndssfaPingShen/qianqichjgcs/list',
                component: () =>
                    import ('@/views/project/ghsjAndssfaPingShen/qianqichjgcs/index'),
                meta: { title: '规划设计与实施方案成果辅助审查（区县）', roles: ["规划设计与实施方案成果辅助审查（区县）1"] },
                children: [{
                        path: 'list',
                        name: '规划设计与实施方案成果辅助审查（区县）2',
                        component: () =>
                            import ('@/views/project/ghsjAndssfaPingShen/qianqichjgcs/list/index'),
                        meta: { title: '规划设计与实施方案成果辅助审查（区县）', activeMenu: "/ghsjAndssfaPingShen/qianqichjgcs", breadcrumb: false, },
                        hidden: true,
                    },
                    {
                        path: 'detail',
                        name: '前期测绘成果初审详情4',
                        component: () =>
                            import ('@/views/project/ghsjAndssfaPingShen/qianqichjgcs/detail/index'),
                        meta: { title: '前期测绘成果初审详情', activeMenu: "/ghsjAndssfaPingShen/qianqichjgcs" },
                        hidden: true,
                    }
                ]
            },
            {
                path: 'shenChaYjQuxianCenter',
                name: 'CONSTRUCTING_PLAN_RESULT_FIRST_AUDIT_FIRST_OPINION',
                component: () =>
                    import ('@/views/project/ghsjAndssfaPingShen/shenChaYjQuxianCenter'),
                meta: { title: '规划设计与实施方案审查区县审查意见（区县中心）', roles: ["规划设计与实施方案审查区县审查意见（区县中心）"] }
            },
            {
                path: 'shenChaYj',
                name: 'CONSTRUCTING_PLAN_RESULT_FIRST_AUDIT_SECOND_OPINION',
                component: () =>
                    import ('@/views/project/ghsjAndssfaPingShen/shenChaYj'),
                meta: { title: '规划设计与实施方案审查区县审查意见（区县局）', roles: ["规划设计与实施方案审查区县审查意见（区县局）"] }
            },

            {
                path: 'supervisionInformation',
                name: '综合监管信息6',
                component: () =>
                    import ('@/views/project/ghsjAndssfaPingShen/supervisionInformation'),
                meta: { title: '综合监管信息' }
            }, {
                path: 'archiveFiles',
                component: () =>
                    import ('@/views/project/ghsjAndssfaPingShen/archiveFiles/index'),
                // redirect: '/archiveFiles/earlyStageAchievementOpinion1',
                name: '归档资料1',
                alwaysShow: true,
                meta: { title: '归档资料' },
                children: [{
                    path: 'earlyStageChengGuoFuShenYjB',
                    name: '规划设计与实施方案意见表',
                    component: () =>
                        import ('@/views/project/ghsjAndssfaPingShen/archiveFiles/earlyStageChengGuoFuShenYjB'),
                    meta: { title: '规划设计与实施方案意见表' }
                }],
            }, {
                path: 'attachment',
                name: '附件资料11',
                component: () =>
                    import ('@/views/project/ghsjAndssfaPingShen/attachment'),
                meta: { title: '附件资料' }
            },
        ]
    },
    {
        path: '/entryRecordApplication',
        component: Layout,
        redirect: '/entryRecordApplication/declareInfoEntry',
        name: '入库备案申报',
        meta: {
            title: '入库备案申报',
            icon: 'example',
            roles: ["入库备案申报"]
        },
        children: [{
                path: 'declareInfoEntry',
                component: () =>
                    import ('@/views/project/entryRecordApplication/declareInfoEntry'), // Parent router-view
                name: 'STORING_RECORD_SAVE',
                meta: { title: '备案申报信息录入（区县）', roles: ['备案申报信息录入（区县）'] },
            },
            {
                path: 'reviewOpinions',
                component: () =>
                    import ('@/views/project/entryRecordApplication/reviewOpinions'),
                name: 'STORING_RECORD_FIRST_AUDIT_FIRST_OPINION',
                meta: { title: '备案申报区县审查意见(区县中心)', roles: ['备案申报区县审查意见(区县中心)'] },
            },
            {
                path: 'reviewOpinionsQuxianju',
                component: () =>
                    import ('@/views/project/entryRecordApplication/reviewOpinionsQuxianju'),
                name: 'STORING_RECORD_FIRST_AUDIT_SECOND_OPINION',
                meta: { title: '备案申报区县审查意见(区县局)', roles: ['备案申报区县审查意见(区县局)'] },
            },
            {
                path: 'uploadDeclareTable',
                component: () =>
                    import ('@/views/project/entryRecordApplication/uploadDeclareTable'),
                name: 'STORING_RECORD_APPLICATION_UPLOAD',
                meta: { title: '上传入库备案申请表(区县)', roles: ['上传入库备案申请表'] }
            },
            {
                path: 'archiveData',
                component: () =>
                    import ('@/views/project/entryRecordApplication/archiveData/index'),
                meta: { title: '归档资料' },
                alwaysShow: true,
                children: [{
                    path: 'entryApplicationTable',
                    name: '入库备案申请表1',
                    component: () =>
                        import ('@/views/project/entryRecordApplication/archiveData/entryApplicationTable'),
                    meta: { title: '入库备案申请表' }
                }]
            },
            {
                path: 'entryAttachment',
                component: () =>
                    import ('@/views/project/entryRecordApplication/entryAttachment'),
                meta: { title: '附件资料' }
            }
        ]
    },
    {
        path: '/entryRecordSee',
        component: Layout,
        redirect: '/entryRecordSee/entryCityCenter',
        name: '入库备案审查',
        meta: {
            title: '入库备案审查',
            icon: 'example',
            roles: ["入库备案审查"]
        },
        children: [{
                path: 'qianqichjgcs',
                name: 'STORING_RECORD_SECOND_AUDIT',
                redirect: '/entryRecordSee/qianqichjgcs/list',
                component: () =>
                    import ('@/views/project/entryRecordSee/qianqichjgcs/index'),
                meta: { title: '入库备案审查', roles: ["入库备案审查1"] },
                children: [{
                        path: 'list',
                        name: '入库备案审查2',
                        component: () =>
                            import ('@/views/project/entryRecordSee/qianqichjgcs/list/index'),
                        meta: { title: '入库备案审查', activeMenu: "/entryRecordSee/qianqichjgcs", breadcrumb: false, },
                        hidden: true,
                    },
                    {
                        path: 'detail',
                        name: '入库备案审查详情',
                        component: () =>
                            import ('@/views/project/entryRecordSee/qianqichjgcs/detail/index'),
                        meta: { title: '入库备案审查详情', activeMenu: "/entryRecordSee/qianqichjgcs" },
                        hidden: true,
                    }
                ]
            },
            {
                path: 'entryCityCenter',
                component: () =>
                    import ('@/views/project/entryRecordSee/entryCityCenter'), // Parent router-view
                name: 'STORING_RECORD_SECOND_AUDIT_FIRST_OPINION',
                meta: { title: '入库备案要件审查（经办人）', roles: ['入库备案要件审查（经办人）'] },
            },
            {
                path: 'entryCityCenterChushiren',
                component: () =>
                    import ('@/views/project/entryRecordSee/entryCityCenterChushiren'), // Parent router-view
                name: 'STORING_RECORD_SECOND_AUDIT_SECOND_OPINION',
                meta: { title: '入库备案要件审查（处室负责人）', roles: ['入库备案要件审查（处室负责人）'] },
            },
            {
                path: 'entryCityCenterFenguanLeader',
                component: () =>
                    import ('@/views/project/entryRecordSee/entryCityCenterFenguanLeader'), // Parent router-view
                name: 'STORING_RECORD_SECOND_AUDIT_THIRD_OPINION',
                meta: { title: '入库备案要件审查（中心分管领导）', roles: ['入库备案要件审查（中心分管领导）'] },
            },
            {
                path: 'entryOptionsUrban',
                component: () =>
                    import ('@/views/project/entryRecordSee/entryOptionsUrban'),
                name: 'STORING_RECORD_THIRD_AUDIT_FIRST_OPINION',
                meta: { title: '入库备案审查意见（耕保经办人）', roles: ['入库备案审查意见（耕保经办人）'] }
            },
            {
                path: 'entryOptionsUrbanShenheren',
                component: () =>
                    import ('@/views/project/entryRecordSee/entryOptionsUrbanShenheren'),
                name: 'STORING_RECORD_THIRD_AUDIT_SECOND_OPINION',
                meta: { title: '入库备案审查意见（耕保审核人）', roles: ['入库备案审查意见（耕保审核人）'] }
            },
            {
                path: 'entryOptionsUrbanJuLeader',
                component: () =>
                    import ('@/views/project/entryRecordSee/entryOptionsUrbanJuLeader'),
                name: 'STORING_RECORD_THIRD_AUDIT_THIRD_OPINION',
                meta: { title: '入库备案审查意见（局领导）', roles: ['入库备案审查意见（局领导）'] }
            },
            {
                path: 'supervisionInformation',
                name: '综合监管信息3',
                redirect: '/entryRecordSee/supervisionInformation/list',
                component: () =>
                    import ('@/views/project/entryRecordSee/supervisionInformation/index'),
                meta: { title: '综合监管信息' },
                children: [{
                        path: 'list',
                        name: '综合监管信息',
                        component: () =>
                            import ('@/views/project/entryRecordSee/supervisionInformation/list/index'),
                        meta: { title: '综合监管信息', activeMenu: "/entryRecordSee/supervisionInformation", breadcrumb: false, },
                        hidden: true,
                    },
                    {
                        path: 'detail',
                        name: '综合监管信息详情',
                        component: () =>
                            import ('@/views/project/entryRecordSee/supervisionInformation/detail/index'),
                        meta: { title: '综合监管信息详情', activeMenu: "/entryRecordSee/supervisionInformation" },
                        hidden: true,
                    }
                ]
            },
            {
                path: 'archiveFiles',
                component: () =>
                    import ('@/views/project/entryRecordSee/archiveFiles/index'),
                name: '归档资料2',
                meta: { title: '归档资料' },
                children: [{
                    path: 'optionsTable',
                    name: '入库备案要件审查意见表',
                    component: () =>
                        import ('@/views/project/entryRecordSee/archiveFiles/optionsTable'),
                    meta: { title: '入库备案要件审查意见表' }
                }, {
                    path: 'adviseNote',
                    name: '入库备案通知书',
                    component: () =>
                        import ('@/views/project/entryRecordSee/archiveFiles/adviseNote'),
                    meta: { title: '入库备案通知书' }
                }],
            },
            {
                path: 'entrySeeAttachment',
                component: () =>
                    import ('@/views/project/entryRecordSee/entrySeeAttachment'),
                meta: { title: '附件资料' }
            }
        ]
    },

    /* ******* 实施阶段********** */

    {
        path: '/fkEntrust',
        component: Layout,
        redirect: '/fkEntrust/fkEntrustEntry',
        name: '复垦委托',
        meta: { title: '复垦委托', icon: 'example', roles: ["复垦委托"] },
        children: [{
                path: '/fkEntrust/fkEntrustEntry',
                name: 'RECLAIM_AGENCY_AGREEMENT_UPLOAD',
                component: () =>
                    import ('@/views/implementation/fkEntrust/fkEntrustEntry'),
                meta: { title: '复垦委托信息录入', roles: ["复垦委托信息录入"] }
            },
            // {
            //     path: '/fkEntrust/comprehensive',
            //     name: '综合监管信息7',
            //     component: () =>
            //         import ('@/views/implementation/fkEntrust/comprehensive'),
            //     meta: { title: '综合监管信息' }
            // },
            {
                path: 'fileData',
                component: () =>
                    import ('@/views/implementation/fkEntrust/fileData/fkEntrustAgreement'),
                // redirect: '/archiveFiles/earlyStageAchievementOpinion1',
                name: '归档资料1',
                meta: { title: '归档资料' },
                alwaysShow: true,
                children: [{
                    path: 'fkEntrustAgreement',
                    name: '复垦委托协议',
                    component: () =>
                        import ('@/views/implementation/fkEntrust/fileData/fkEntrustAgreement'),
                    meta: { title: '复垦委托协议' }
                }],
            },
            // {
            //     path: '/fkEntrust/fkAttachment',
            //     name: '附件资料15',
            //     component: () =>
            //         import ('@/views/implementation/fkEntrust/fkAttachment'),
            //     meta: { title: '附件资料' }
            // }
        ]
    },
    {
        path: '/implementationUnitChoose',
        component: Layout,
        redirect: '/implementationUnitChoose/implementationEntry',
        name: '实施单位选取',
        meta: { title: '实施单位选取', icon: 'example', roles: ["实施单位选取"] },
        children: [{
                path: '/implementationUnitChoose/manageEntry',
                name: 'SUPERVISING_ENTERPRISE_SELECT',
                component: () =>
                    import ('@/views/implementation/implementationUnitChoose/manageEntry'),
                meta: { title: '监理单位信息录入（区县）', roles: ["监理单位信息录入（区县）"] }
            }, {
                path: '/implementationUnitChoose/implementationEntry',
                name: 'CONSTRUCTING_ENTERPRISE_SELECT',
                component: () =>
                    import ('@/views/implementation/implementationUnitChoose/implementationEntry'),
                meta: { title: '实施单位信息录入（区县）', roles: ["实施单位信息录入（区县）"] }
            }, {
                path: '/implementationUnitChoose/implementationSee',
                name: '实施单位选取信息查看',
                component: () =>
                    import ('@/views/implementation/implementationUnitChoose/implementationSee'),
                meta: { title: '实施单位选取信息查看' }
            }, {
                path: '/implementationUnitChoose/manageSee',
                name: '监理单位选取信息查看',
                component: () =>
                    import ('@/views/implementation/implementationUnitChoose/manageSee'),
                meta: { title: '监理单位选取信息查看' }
            },
            // {
            //     path: '/implementationUnitChoose/implementationAttachment',
            //     name: '附件资料16',
            //     component: () =>
            //         import('@/views/implementation/implementationUnitChoose/implementationAttachment'),
            //     meta: { title: '附件资料' }
            // }
        ]
    }, {
        path: '/projectImplementation',
        component: Layout,
        redirect: '/projectImplementation/projectEntry',
        name: '项目实施',
        meta: { title: '项目实施', icon: 'example', roles: ["项目实施"] },
        children: [{
                path: '/projectImplementation/projectEntry',
                name: 'PROJECT_UPDATE_INFO_SAVE',
                component: () =>
                    import ('@/views/implementation/projectImplementation/projectEntry'),
                meta: { title: '项目变更信息录入（区县）', roles: ["项目变更信息录入（区县）"] }
            },
            {
                path: '/projectImplementation/projectSee',
                name: '项目变更信息查看（市中心）',
                component: () =>
                    import ('@/views/implementation/projectImplementation/projectSee'),
                meta: { title: '项目变更信息查看（市中心）' }
            },
            {
                path: 'supervisionInformation',
                name: '综合监管信息1',
                redirect: '/projectImplementation/supervisionInformation/list',
                component: () =>
                    import('@/views/implementation/projectImplementation/supervisionInformation/index'),
                meta: { title: '综合监管信息' },
                children: [
                    {
                        path: 'list',
                        name: '综合监管信息2',
                        component: () =>
                            import('@/views/implementation/projectImplementation/supervisionInformation/list/index'),
                        meta: { title: '综合监管信息', activeMenu: "/projectImplementation/supervisionInformation", breadcrumb: false, },
                        hidden: true,
                    },
                    {
                        path: 'detail',
                        name: '综合监管信息详情3',
                        component: () =>
                            import('@/views/implementation/projectImplementation/supervisionInformation/detail/index'),
                        meta: { title: '综合监管信息详情', activeMenu: "/projectImplementation/supervisionInformation" },
                        hidden: true,
                    }
                ]
            },
            //  {
            //     path: '/projectImplementation/zongheInfo',
            //     name: '综合监管信息',
            //     component: () =>
            //         import ('@/views/implementation/projectImplementation/zongheInfo'),
            //     meta: { title: '综合监管信息' }
            // },
            //  {
            //     path: '/projectImplementation/moveInfo',
            //     name: '移动巡查信息',
            //     component: () =>
            //         import('@/views/implementation/projectImplementation/moveInfo'),
            //     meta: { title: '移动巡查信息' }
            // },
            // {
            //     path: 'fileData',
            //     component: () =>
            //         import ('@/views/implementation/jianguanYanshou/fileData/jianguanOpinionTable'),
            //     // redirect: '/archiveFiles/earlyStageAchievementOpinion1',
            //     name: '归档资料3',
            //     meta: { title: '归档资料', },
            //     alwaysShow: true,
            //     children: [{
            //         path: 'jianguanOpinionTable',
            //         name: '监理验收意见表',
            //         component: () =>
            //             import ('@/views/implementation/jianguanYanshou/fileData/jianguanOpinionTable'),
            //         meta: { title: '监理验收意见表' }
            //     },{
            //         path: 'stlfTestOpinionTable',
            //         name: '施工自验意见表',
            //         component: () =>
            //             import ('@/views/implementation/implementationSelfTest/fileData/stlfTestOpinionTable'),
            //         meta: { title: '施工自验意见表', }
            //     }],
            // },
            {
                path: '/projectImplementation/projectAttachment',
                name: '附件资料17',
                component: () =>
                    import ('@/views/implementation/projectImplementation/projectAttachment'),
                meta: { title: '附件资料' }
            },
        ]
    },

    {
        path: '/implementationSelfTest',
        component: Layout,
        redirect: '/implementationSelfTest/zongheSuperviseInfo',
        name: '施工自验',
        meta: { title: '施工自验', icon: 'example', roles:["施工自验"] },
        children: [
            {
                path: 'supervisionInformation',
                name: '综合监管信息1',
                redirect: '/implementationSelfTest/supervisionInformation/list',
                component: () =>
                    import('@/views/implementation/implementationSelfTest/supervisionInformation/index'),
                meta: { title: '综合监管信息' },
                children: [
                    {
                        path: 'list',
                        name: '综合监管信息2',
                        component: () =>
                            import('@/views/implementation/implementationSelfTest/supervisionInformation/list/index'),
                        meta: { title: '综合监管信息', activeMenu: "/implementationSelfTest/supervisionInformation", breadcrumb: false, },
                        hidden: true,
                    },
                    {
                        path: 'detail',
                        name: '综合监管信息详情3',
                        component: () =>
                            import('@/views/implementation/implementationSelfTest/supervisionInformation/detail/index'),
                        meta: { title: '综合监管信息详情', activeMenu: "/implementationSelfTest/supervisionInformation" },
                        hidden: true,
                    }
                ]
            },
            {
                path: 'fileData',
                component: () =>
                    import ('@/views/implementation/implementationSelfTest/fileData/stlfTestOpinionTable'),
                // redirect: '/archiveFiles/earlyStageAchievementOpinion1',
                name: '归档资料2',
                meta: { title: '归档资料', },
                alwaysShow: true,
                children: [{
                    path: 'stlfTestOpinionTable',
                    name: '施工自验意见表',
                    component: () =>
                        import ('@/views/implementation/implementationSelfTest/fileData/stlfTestOpinionTable'),
                    meta: { title: '施工自验意见表', }
                }],
            }
        ]
    },
    {
        path: '/jianguanYanshou',
        component: Layout,
        redirect: '/jianguanYanshou/zongheManageInfo',
        name: '监理验收',
        meta: { title: '监理验收', icon: 'example', roles:["监理验收"] },
        children: [
            
            {
                path: 'supervisionInformation',
                name: '综合监管信息1',
                redirect: '/jianguanYanshou/supervisionInformation/list',
                component: () =>
                    import('@/views/implementation/jianguanYanshou/supervisionInformation/index'),
                meta: { title: '综合监管信息' },
                children: [
                    {
                        path: 'list',
                        name: '综合监管信息2',
                        component: () =>
                            import('@/views/implementation/jianguanYanshou/supervisionInformation/list/index'),
                        meta: { title: '综合监管信息', activeMenu: "/jianguanYanshou/supervisionInformation", breadcrumb: false, },
                        hidden: true,
                    },
                    {
                        path: 'detail',
                        name: '综合监管信息详情3',
                        component: () =>
                            import('@/views/implementation/jianguanYanshou/supervisionInformation/detail/index'),
                        meta: { title: '综合监管信息详情', activeMenu: "/jianguanYanshou/supervisionInformation" },
                        hidden: true,
                    }
                ]
            },
            // {
            //     path: '/jianguanYanshou/zongheManageInfo',
            //     name: '综合监管信息9',
            //     component: () =>
            //         import ('@/views/implementation/jianguanYanshou/zongheManageInfo'),
            //     meta: { title: '综合监管信息', }
            // },
            {
                path: 'fileData',
                component: () =>
                    import ('@/views/implementation/jianguanYanshou/fileData/jianguanOpinionTable'),
                // redirect: '/archiveFiles/earlyStageAchievementOpinion1',
                name: '归档资料2',
                meta: { title: '归档资料', },
                alwaysShow: true,
                children: [{
                    path: 'jianguanOpinionTable',
                    name: '监理验收意见表',
                    component: () =>
                        import ('@/views/implementation/jianguanYanshou/fileData/jianguanOpinionTable'),
                    meta: { title: '监理验收意见表', }
                }],
            }
        ]
    },
    {
        path: '/jungongcehuijigouChoose',
        component: Layout,
        redirect: '/jungongcehuijigouChoose/jungongUnitInfoEntry',
        name: '竣工测绘机构选取',
        meta: { title: '竣工测绘机构选取', icon: 'example', roles: ["竣工测绘机构选取"] },
        children: [{
                path: '/jungongcehuijigouChoose/jungongUnitInfoEntry',
                name: 'LATER_MAPPING_ENTERPRISE_SELECT',
                component: () =>
                    import ('@/views/implementation/jungongcehuijigouChoose/jungongUnitInfoEntry'),
                meta: { title: '竣工测绘单位信息录入（区县）', roles: ["竣工测绘单位信息录入（区县）"] }
            },
            {
                path: '/jungongcehuijigouChoose/jungonginfoSee',
                name: '竣工测绘机构选取信息查看（市中心）',
                component: () =>
                    import ('@/views/implementation/jungongcehuijigouChoose/jungonginfoSee'),
                meta: { title: '竣工测绘机构选取信息查看（市中心）' }
            },
            {
                path: '/jungongcehuijigouChoose/jungongAttachment',
                name: '附件资料18',
                component: () =>
                    import ('@/views/implementation/jungongcehuijigouChoose/jungongAttachment'),
                meta: { title: '附件资料' }
            },

        ]
    }, {
        path: '/jjgc',
        component: Layout,
        redirect: '/jjgc/insertEarlyStage',
        name: '竣工测绘',
        meta: { title: '竣工测绘', icon: 'example', roles: ["竣工测绘"] },
        children: [{
                path: 'insertEarlyStage',
                name: 'LATER_MAPPING_RESULT_SAVE',
                component: () =>
                    import ('@/views/implementation/jjgc/insertEarlyStage'),
                meta: { title: '竣工测绘成果录入（区县）', roles: ["竣工测绘成果录入（区县）"] }
            },
            {
                path: 'qianqichjgcs',
                name: 'LATER_MAPPING_RESULT_FIRST_AUDIT',
                redirect: '/jjgc/qianqichjgcs/list',
                component: () =>
                    import ('@/views/implementation/jjgc/qianqichjgcs/index'),
                meta: { title: '竣工测绘成果初审（区县）', roles: ["竣工测绘成果初审（区县）1"] },
                children: [{
                        path: 'list',
                        name: '竣工测绘成果初审（区县）2',
                        component: () =>
                            import ('@/views/implementation/jjgc/qianqichjgcs/list/index'),
                        meta: { title: '竣工测绘成果初审（区县）', activeMenu: "/jjgc/qianqichjgcs", breadcrumb: false, },
                        hidden: true,
                    },
                    {
                        path: 'detail',
                        name: '竣工测绘成果初审详情2',
                        component: () =>
                            import ('@/views/implementation/jjgc/qianqichjgcs/detail/index'),
                        meta: { title: '竣工测绘成果初审详情', activeMenu: "/jjgc/qianqichjgcs" },
                        hidden: true,
                    }
                ]
            },
            {
                path: 'earlyStageAchievementOpinion',
                name: 'LATER_MAPPING_RESULT_FIRST_AUDIT_FIRST_OPINION',
                component: () =>
                    import ('@/views/implementation/jjgc/earlyStageAchievementOpinion'),
                meta: { title: '竣工测绘成果初审意见（区县）', roles: ["竣工测绘成果初审意见（区县）"] }
            },
            {
                path: 'earlyStageAchievementOpinion1',
                name: 'LATER_MAPPING_RESULT_FIRST_AUDIT_SECOND_OPINION',
                component: () =>
                    import ('@/views/implementation/jjgc/earlyStageAchievementOpinion'),
                meta: { title: '竣工测绘成果初审意见（市中心)', icon: 'tree', roles: ["竣工测绘成果初审意见（市中心）"] }
            },
            {
                path: 'supervisionInformation',
                name: '综合监管信息15',
                redirect: '/jjgc/supervisionInformation/list',
                component: () =>
                    import ('@/views/implementation/jjgc/supervisionInformation/index'),
                meta: { title: '综合监管信息' },
                children: [{
                        path: 'list',
                        name: '综合监管信息14',
                        component: () =>
                            import ('@/views/implementation/jjgc/supervisionInformation/list/index'),
                        meta: { title: '综合监管信息', activeMenu: "/jjgc/supervisionInformation", breadcrumb: false, },
                        hidden: true,
                    },
                    {
                        path: 'detail',
                        name: '综合监管信息详情1',
                        component: () =>
                            import ('@/views/implementation/jjgc/supervisionInformation/detail/index'),
                        meta: { title: '综合监管信息详情', activeMenu: "/jjgc/supervisionInformation" },
                        hidden: true,
                    }
                ]
            },
            {
                path: 'archiveFiles',
                component: () =>
                    import ('@/views/implementation/jjgc/archiveFiles/index'),
                // redirect: '/archiveFiles/earlyStageAchievementOpinion1',
                name: '归档资料3',
                meta: { title: '归档资料' },
                children: [{
                    path: 'earlyStageAchievementOpinion1',
                    name: '竣工测绘初审意见表',
                    component: () =>
                        import ('@/views/implementation/jjgc/archiveFiles/earlyStageAchievementOpinion1'),
                    meta: { title: '竣工测绘初审意见表' }
                }, {
                    path: 'increaseAndDecrease',
                    name: '竣工测绘审减（增）信息表',
                    component: () =>
                        import ('@/views/implementation/jjgc/archiveFiles/increaseAndDecrease'),
                    meta: { title: '竣工测绘审减（增）信息表' }
                }],
            },
            {
                path: 'attachment',
                name: '附件资料13',
                component: () =>
                    import ('@/views/implementation/jjgc/attachment'),
                meta: { title: '附件资料' }
            },
        ]
    },
    {
        path: '/jungongcehuiResultFuShen',
        component: Layout,
        redirect: '/jungongcehuiResultFuShen/jungongFuShen',
        name: '竣工测绘成果复审',
        meta: { title: '竣工测绘成果复审', icon: 'example', roles: ["竣工测绘成果复审"] },
        children: [{
                path: '/jungongcehuiResultFuShen/jungongFuShen',
                name: 'LATER_MAPPING_RESULT_SECOND_AUDIT',
                component: () =>
                    import ('@/views/implementation/jungongcehuiResultFuShen/jungongFuShen'),
                meta: { title: '竣工测绘成果复审', roles: ["竣工测绘成果复审（市中心）1"] }
            },
            {
                path: '/jungongcehuiResultFuShen/jungongFuShenLook',
                name: 'LATER_MAPPING_RESULT_SECOND_AUDIT',
                component: () =>
                    import ('@/views/implementation/jungongcehuiResultFuShen/qianqichjgcs/list/index'),
                meta: { title: '竣工测绘成果复审结果查看', roles: ["竣工测绘成果复审（市中心）1查看"] }
            },
            {
                hidden: true,
                path: 'qianqichjgcs',
                name: '竣工测绘成果复审（辅助审查）',
                redirect: '/jungongcehuiResultFuShen/qianqichjgcs/list',
                component: () =>
                    import ('@/views/implementation/jungongcehuiResultFuShen/qianqichjgcs/index'),
                meta: { title: '竣工测绘成果复审（辅助审查）', activeMenu: "/jungongcehuiResultFuShen/jungongFuShen", roles: ['竣工测绘成果复审（市中心）1'] },
                children: [{
                        path: 'list',
                        name: '竣工测绘成果复审（辅助审查）2',
                        component: () =>
                            import ('@/views/implementation/jungongcehuiResultFuShen/qianqichjgcs/list/index'),
                        meta: { title: '竣工测绘成果复审（辅助审查）', activeMenu: "/jungongcehuiResultFuShen/jungongFuShen", breadcrumb: false, },
                        hidden: true,
                    },
                    {
                        path: 'detail',
                        name: '竣工测绘成果辅助审查详情',
                        component: () =>
                            import ('@/views/implementation/jungongcehuiResultFuShen/qianqichjgcs/detail/index'),
                        meta: { title: '竣工测绘成果辅助审查详情', activeMenu: "/jungongcehuiResultFuShen/jungongFuShen" },
                        hidden: true,
                    }
                ]
            },
            {
                path: '/jungongcehuiResultFuShen/jungongOpinion',
                name: 'LATER_MAPPING_RESULT_SECOND_AUDIT_FIRST_OPINION',
                component: () =>
                    import ('@/views/implementation/jungongcehuiResultFuShen/jungongOpinion'),
                meta: { title: '竣工测绘成果复审意见', roles: ["竣工测绘成果复审意见1"] }
            },
            {
                path: '/jungongcehuiResultFuShen/jungongOpinion',
                name: 'LATER_MAPPING_RESULT_SECOND_AUDIT_SECOND_OPINION',
                component: () =>
                    import ('@/views/implementation/jungongcehuiResultFuShen/jungongOpinion'),
                meta: { title: '竣工测绘成果复审意见', roles: ["竣工测绘成果复审意见2"] },
            },
            {
                path: 'supervisionInformation',
                name: '综合监管信息10',
                redirect: '/jungongcehuiResultFuShen/supervisionInformation/list',
                component: () =>
                    import ('@/views/implementation/jungongcehuiResultFuShen/supervisionInformation/index'),
                meta: { title: '综合监管信息' },
                children: [{
                        path: 'list',
                        name: '综合监管信息16',
                        component: () =>
                            import ('@/views/implementation/jungongcehuiResultFuShen/supervisionInformation/list/index'),
                        meta: { title: '综合监管信息', activeMenu: "/jungongcehuiResultFuShen/supervisionInformation", breadcrumb: false, },
                        hidden: true,
                    },
                    {
                        path: 'detail',
                        name: '综合监管信息详情4',
                        component: () =>
                            import ('@/views/implementation/jungongcehuiResultFuShen/supervisionInformation/detail/index'),
                        meta: { title: '综合监管信息详情', activeMenu: "/jungongcehuiResultFuShen/supervisionInformation" },
                        hidden: true,
                    }
                ]
            },
            // {

            //     path: '/jungongcehuiResultFuShen/jungongZongheInfo',
            //     name: '综合监管信息10',
            //     component: () =>
            //         import ('@/views/implementation/jungongcehuiResultFuShen/jungongZongheInfo'),
            //     meta: { title: '综合监管信息' }
            // },
            {
                path: 'fileData',
                component: () =>
                    import ('@/views/implementation/jungongcehuiResultFuShen/fileData/index'),
                name: '归档资料4',
                meta: { title: '归档资料' },
                alwaysShow: true,
                children: [{
                    path: 'index',
                    name: '竣工测绘成果复审意见表',
                    component: () =>
                        import ('@/views/implementation/jungongcehuiResultFuShen/fileData/index'),
                    meta: { title: '竣工测绘成果复审意见表' }
                }]
            }

        ]
    }, {
        path: '/quxianzongheYanshou',
        component: Layout,
        redirect: '/quxianzongheYanshou/quxianEntry',
        name: '区县综合验收',
        meta: { title: '区县综合验收', icon: 'example', roles: ["区县综合验收"] },
        children: [{
                path: '/quxianzongheYanshou/quxianEntry',
                name: 'COMPLETING_RESULT_SAVE',
                component: () =>
                    import ('@/views/implementation/quxianzongheYanshou/quxianEntry'),
                meta: { title: '区县综合验收信息录入（区县）', roles: ["区县综合验收信息录入（区县）"] }
            },
            {
                path: '/quxianzongheYanshou/quxianOpinion',
                name: 'COMPLETING_RESULT_FIRST_AUDIT_FIRST_OPINION',
                component: () =>
                    import ('@/views/implementation/quxianzongheYanshou/quxianOpinion'),
                meta: { title: '区县综合验收意见（区县整治机构意见）', roles: ["区县综合验收意见（区县整治机构意见）"] }
            },
            {
                path: '/quxianzongheYanshou/quxianOpinionQxGuotuOpinion',
                name: 'COMPLETING_RESULT_FIRST_AUDIT_SECOND_OPINION',
                component: () =>
                    import ('@/views/implementation/quxianzongheYanshou/quxianOpinionQxGuotuOpinion'),
                meta: { title: '区县综合验收意见(区县国土资源行政主管部门意见)', roles: ["区县综合验收意见(区县国土资源行政主管部门意见)"] }
            },
            // {
            //     path: '/quxianzongheYanshou/quxianZongheInfo',
            //     name: '综合监管信息11',
            //     component: () =>
            //         import ('@/views/implementation/quxianzongheYanshou/quxianZongheInfo'),
            //     meta: { title: '综合监管信息1' }
            // },
            {
                path: 'supervisionInformation',
                name: '综合监管信息10',
                redirect: '/quxianzongheYanshou/supervisionInformation/list',
                component: () =>
                    import ('@/views/implementation/quxianzongheYanshou/supervisionInformation/index'),
                meta: { title: '综合监管信息' },
                children: [{
                        path: 'list',
                        name: '综合监管信息16',
                        component: () =>
                            import ('@/views/implementation/quxianzongheYanshou/supervisionInformation/list/index'),
                        meta: { title: '综合监管信息', activeMenu: "/quxianzongheYanshou/supervisionInformation", breadcrumb: false, },
                        hidden: true,
                    },
                    {
                        path: 'detail',
                        name: '综合监管信息详情4',
                        component: () =>
                            import ('@/views/implementation/quxianzongheYanshou/supervisionInformation/detail/index'),
                        meta: { title: '综合监管信息详情', activeMenu: "/quxianzongheYanshou/supervisionInformation" },
                        hidden: true,
                    }
                ]
            },
            {
                path: 'fileData',
                component: () =>
                    import ('@/views/implementation/quxianzongheYanshou/fileData/quxianYanshouOpinionTable'),
                name: '归档资料5',
                meta: { title: '归档资料' },
                alwaysShow: true,
                children: [{
                    path: 'quxianYanshouOpinionTable',
                    name: '区县综合验收意见表',
                    component: () =>
                        import ('@/views/implementation/quxianzongheYanshou/fileData/quxianYanshouOpinionTable'),
                    meta: { title: '区县综合验收意见表' }
                }],
            }, {
                path: '/quxianzongheYanshou/quxianAttachment',
                name: '附件资料19',
                component: () =>
                    import ('@/views/implementation/quxianzongheYanshou/quxianAttachment'),
                meta: { title: '附件资料' }
            }

        ]
    },

    {
        path: '/jungongAreaGongshi',
        component: Layout,
        redirect: '/jungongAreaGongshi/areaGongshi',
        name: '竣工面积公示1',
        meta: { title: '竣工面积公示', icon: 'example',roles:["竣工面积公示"] },
        children: [{
                path: '/jungongAreaGongshi/areaGongshi',
                name: '竣工面积公示2',
                component: () =>
                    import ('@/views/implementation/jungongAreaGongshi/areaGongshi'),
                meta: { title: '竣工面积公示' }
            },
            // {
            //     path: '/jungongAreaGongshi/areaZongheInfo',
            //     name: '综合监管信息12',
            //     component: () =>
            //         import ('@/views/implementation/jungongAreaGongshi/areaZongheInfo'),
            //     meta: { title: '综合监管信息' }
            // },
            {
                path: 'supervisionInformation',
                name: '综合监管信息1',
                redirect: '/jungongAreaGongshi/supervisionInformation/list',
                component: () =>
                    import('@/views/implementation/jungongAreaGongshi/supervisionInformation/index'),
                meta: { title: '综合监管信息' },
                children: [
                    {
                        path: 'list',
                        name: '综合监管信息2',
                        component: () =>
                            import('@/views/implementation/jungongAreaGongshi/supervisionInformation/list/index'),
                        meta: { title: '综合监管信息', activeMenu: "/jungongAreaGongshi/supervisionInformation", breadcrumb: false, },
                        hidden: true,
                    },
                    {
                        path: 'detail',
                        name: '综合监管信息详情3',
                        component: () =>
                            import('@/views/implementation/jungongAreaGongshi/supervisionInformation/detail/index'),
                        meta: { title: '综合监管信息详情', activeMenu: "/jungongAreaGongshi/supervisionInformation" },
                        hidden: true,
                    }
                ]
            },
            {
                path: 'fileData',
                component: () =>
                    import ('@/views/implementation/jungongAreaGongshi/fileData/index'),
                name: '归档资料6',
                meta: { title: '归档资料' },
                alwaysShow: true,
                children: [{
                    path: 'index',
                    name: '竣工面积公示表',
                    component: () =>
                        import ('@/views/implementation/jungongAreaGongshi/fileData/index'),
                    meta: { title: '竣工面积公示表' }
                }],
            }
        ]
    },

    {
        path: '/hegezhengPeihao',
        component: Layout,
        redirect: '/hegezhengPeihao/hegezhengApplication',
        name: '合格证配号',
        meta: { title: '合格证配号', icon: 'example', roles: ["合格证配号"] },
        children: [{
                path: '/hegezhengPeihao/hegezhengApplication',
                name: 'QUALIFIED_CERTIFICATE_APPLICATION_SAVE',
                component: () =>
                    import ('@/views/implementation/hegezhengPeihao/hegezhengApplication'),
                meta: { title: '合格证配号申请（区县）', roles: ['合格证配号申请（区县）'] }
            },
            // {
            //     path: '/hegezhengPeihao/fuzhushencha',
            //     name: 'QUALIFIED_CERTIFICATE_APPLICATION_SECOND_AUDIT',
            //     component: () =>
            //         import ('@/views/implementation/hegezhengPeihao/fuzhushencha'),
            //     meta: { title: '要件辅助审查（市中心）', roles: ['要件辅助审查（市中心）'] }
            // },
            {
                path: 'qianqichjgcs',
                name: 'QUALIFIED_CERTIFICATE_APPLICATION_SECOND_AUDIT',
                redirect: '/hegezhengPeihao/qianqichjgcs/list',
                component: () =>
                    import ('@/views/implementation/hegezhengPeihao/qianqichjgcs/index'),
                meta: { title: '要件辅助审查（辅助审查）', activeMenu: "/hegezhengPeihao/qianqichjgcs" },
                children: [{
                        path: 'list',
                        name: '要件辅助审查（辅助审查）2',
                        component: () =>
                            import ('@/views/implementation/hegezhengPeihao/qianqichjgcs/list/index'),
                        meta: { title: '要件辅助审查（辅助审查）', activeMenu: "/hegezhengPeihao/qianqichjgcs", breadcrumb: false, },
                        hidden: true,
                    },
                    {
                        path: 'detail',
                        name: '要件辅助审查辅助审查详情',
                        component: () =>
                            import ('@/views/implementation/hegezhengPeihao/qianqichjgcs/detail/index'),
                        meta: { title: '要件辅助审查辅助审查详情', activeMenu: "/hegezhengPeihao/qianqichjgcs" },
                        hidden: true,
                    }
                ]
            },
            {
                path: '/hegezhengPeihao/shenchaAndWaiyeOpinion',
                name: 'QUALIFIED_CERTIFICATE_APPLICATION_SECOND_AUDIT_FIRST_OPINION',
                component: () =>
                    import ('@/views/implementation/hegezhengPeihao/shenchaAndWaiyeOpinion'),
                meta: { title: '要件审查意见（经办人）', roles: ['要件审查意见（经办人）'] }
            },
            {
                path: '/hegezhengPeihao/shenchaAndWaiyeOpinionChushi',
                name: 'QUALIFIED_CERTIFICATE_APPLICATION_SECOND_AUDIT_SECOND_OPINION',
                component: () =>
                    import ('@/views/implementation/hegezhengPeihao/shenchaAndWaiyeOpinionChushi'),
                meta: { title: '要件审查意见（处室负责人）', roles: ['要件审查意见（处室负责人）'] }
            },
            {
                path: '/hegezhengPeihao/shenchaAndWaiyeOpinionCenterleader',
                name: 'QUALIFIED_CERTIFICATE_APPLICATION_SECOND_AUDIT_THIRD_OPINION',
                component: () =>
                    import ('@/views/implementation/hegezhengPeihao/shenchaAndWaiyeOpinionCenterleader'),
                meta: { title: '要件审查意见（中心分管领导）', roles: ['要件审查意见（中心分管领导）'] }
            },
            {
                path: '/hegezhengPeihao/hegezhengShenpi',
                name: 'QUALIFIED_CERTIFICATE_APPLICATION_THIRD_AUDIT_FIRST_OPINION',
                component: () =>
                    import ('@/views/implementation/hegezhengPeihao/hegezhengShenpi'),
                meta: { title: '合格证配号审批（耕保处、市局）', roles: ["合格证配号审批（耕保处、市局）1"] }
            },
            {
                path: '/hegezhengPeihao/hegezhengShenpi',
                name: 'QUALIFIED_CERTIFICATE_APPLICATION_THIRD_AUDIT_SECOND_OPINION',
                component: () =>
                    import ('@/views/implementation/hegezhengPeihao/hegezhengShenpi'),
                meta: { title: '合格证配号审批（耕保处、市局）', roles: ["合格证配号审批（耕保处、市局）2"] },
            },
            {
                path: '/hegezhengPeihao/hegezhengShenpi',
                name: 'QUALIFIED_CERTIFICATE_APPLICATION_THIRD_AUDIT_THIRD_OPINION',
                component: () =>
                    import ('@/views/implementation/hegezhengPeihao/hegezhengShenpi'),
                meta: { title: '合格证配号审批（耕保处、市局）', roles: ["合格证配号审批（耕保处、市局）3"] },
            },
            {
                path: 'supervisionInformation',
                name: '综合监管信息1',
                redirect: '/hegezhengPeihao/supervisionInformation/list',
                component: () =>
                    import ('@/views/implementation/hegezhengPeihao/supervisionInformation/index'),
                meta: { title: '综合监管信息' },
                children: [{
                        path: 'list',
                        name: '综合监管信息2',
                        component: () =>
                            import ('@/views/implementation/hegezhengPeihao/supervisionInformation/list/index'),
                        meta: { title: '综合监管信息', activeMenu: "/hegezhengPeihao/supervisionInformation", breadcrumb: false },
                        hidden: true,
                    },
                    {
                        path: 'detail',
                        name: '综合监管信息详情3',
                        component: () =>
                            import ('@/views/implementation/hegezhengPeihao/supervisionInformation/detail/index'),
                        meta: { title: '综合监管信息详情', activeMenu: "/hegezhengPeihao/supervisionInformation" },
                        hidden: true,
                    }
                ]
            },
            {
                path: 'fileData',
                component: () =>
                    import ('@/views/implementation/hegezhengPeihao/fileData/index'),
                name: '归档资料8',
                meta: { title: '归档资料' },
                alwaysShow: true,
                children: [{
                    path: 'yaojianTable',
                    name: '要件审查意见表',
                    component: () =>
                        import ('@/views/implementation/hegezhengPeihao/fileData/yaojianTable'),
                    meta: { title: '要件审查意见表' }
                }, {
                    path: 'shenpiTable',
                    name: '合格证配号申请审批表',
                    component: () =>
                        import ('@/views/implementation/hegezhengPeihao/fileData/shenpiTable'),
                    meta: { title: '合格证配号申请审批表' }
                }],
            },
            // {
            //     path: 'archiveFiles',
            //     component: () =>
            //         import ('@/views/project/entryRecordSee/archiveFiles/index'),
            //     name: '归档资料2',
            //     meta: { title: '归档资料' },
            //     children: [{
            //         path: 'optionsTable',
            //         name: '入库备案要件审查意见表',
            //         component: () =>
            //             import ('@/views/project/entryRecordSee/archiveFiles/optionsTable'),
            //         meta: { title: '入库备案要件审查意见表' }
            //     }, {
            //         path: 'adviseNote',
            //         name: '入库备案通知书',
            //         component: () =>
            //             import ('@/views/project/entryRecordSee/archiveFiles/adviseNote'),
            //         meta: { title: '入库备案通知书' }
            //     }],
            // },
        ]
    },

    // 404 page must be placed at the end !!!
    { path: '*', redirect: '/404', hidden: true }
]

const createRouter = () => new Router({
    // mode: 'history', // require service support
    scrollBehavior: () => ({ y: 0 }),
    routes: constantRoutes
})

const router = createRouter()

// Detail see: https://github.com/vuejs/vue-router/issues/1234#issuecomment-357941465
export function resetRouter() {
    const newRouter = createRouter()
    router.matcher = newRouter.matcher // reset router
}

export default router